<!-- 导航条
================================================== -->
<taglib name="Think,Article"/>
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="{:U('index/index')}">OA-让工作更加简单</a>
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <div class="nav-collapse collapse">
                <ul class="nav">
                    <think:nav name="nav">
                        <li>
                            <a href="{$nav.url|get_nav_url}">{$nav.title}</a>
                        </li>
                    </think:nav>
                </ul>
            </div>
            <div class="nav-collapse collapse pull-right">
                <if condition="is_login()">
                    <ul class="nav" style="margin-right:0">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding-left:0;padding-right:0">{:get_username()} <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="{:U('User/profile')}">修改密码</a></li>
                                <li><a href="{:U('User/logout')}">退出</a></li>
                            </ul>
                        </li>
                    </ul>
                <else/>
                    <ul class="nav" style="margin-right:0">
                        <li>
                            <!-- <a href="{:U('User/login')}">登录</a> -->
							<a href="javascript:windowLogin('__APP__/Home/user/login');">登录</a>
                        </li>
                        <li>
                            <a href="{:U('User/register')}" style="padding-left:0;padding-right:0">注册</a>
                        </li>
                        <li>
							<a href="javascript:;" class="glyphicon glyphicon-envelope mail" style="font-size:18px;" data-html=true data-content="<span class='label label-info'>admin</span><span class='label label-info'>minglei1202</span>" data-placement="bottom" data-toggle="popover" data-original-title="未读邮件"></a>
                        </li>
                    </ul>
                </if>
            </div>
        </div>
    </div>
</div>
